package edu.wpi.first.wpilibj.sensor;

import edu.wpi.first.wpilibj.camera.AxisCamera;
import edu.wpi.first.wpilibj.camera.AxisCameraException;
import edu.wpi.first.wpilibj.image.*;

/**
 *
 * @author Dylan Frese
 */
public class Camera {
    
    private static edu.wpi.first.wpilibj.camera.AxisCamera physicalCamera = AxisCamera.getInstance();
    
    public void update(){
        try{
            ColorImage c = physicalCamera.getImage();
            MonoImage lum = c.getLuminancePlane();
            //What... the interface for MonoImage... whut.... wat..... wa....... w........
            //WELL WHAT AM I SUPPOSED TO DO WITH THIS?
            //NO, SERIOUSLY, I CAN'T EVEN ACCESS THE PIXELS!
            //NOT EVEN THE F***ING PIXELS
        }catch (AxisCameraException e){
            
        }catch (NIVisionException e){
            
        }
    }
    
}
